import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
// https://vitejs.dev/config/
export default defineConfig({
    plugins: [uni()],
    server: {
        proxy: {
            // 在此处编写代理规则
            '/api': {
                target: 'http://192.168.0.244:28580', // 测试服务
                changeOrigin: true,
                rewrite: (path) => {
                    return path.replace(/\/api/, '')
                },
            },
        },
    },
})
